package com.gljx.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gljx.web.Entity.CoaceGroupEntry;
import com.gljx.web.dao.CoaceGroupEntryMapper;
import com.gljx.web.dao.CommonDao;
import com.gljx.web.service.CoaceGroupEntryService;


@Transactional
@Service
public class CoaceGroupEntryServiceImpl extends CommonDao implements CoaceGroupEntryService{

	@Autowired
	private CoaceGroupEntryMapper coaceGroupEntryMapper;
	
	/**
	 * 实现添加
	 */
	@Override
	public void addCoaceGroupEntry(CoaceGroupEntry coaceGroupEntry) {
		// TODO Auto-generated method stub
		coaceGroupEntryMapper.insertSelective(coaceGroupEntry);
	}

	/**
	 * 实现删除
	 */
	@Override
	public void deleteByFparentId(String fparentId) {
		// TODO Auto-generated method stub
		coaceGroupEntryMapper.deleteByFparentId(fparentId);
	}

	/**
	 * 实现根据父类ID查询
	 */
	@Override
	public List<CoaceGroupEntry> queryByFparentId(String fparentId) {
		// TODO Auto-generated method stub
		return coaceGroupEntryMapper.selectByFparentId(fparentId);
	}

}
